<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>3.关于等一等</title>
  </head>
  <body>
    <script type="text/javascript" >

      /* setTimeout(() => {
        console.log(1)
      }, 1000); */

      /* let p = new Promise(function(resolve,reject){
        setTimeout(() => {
          resolve(1)
        }, 3000);
      })

      p.then((value)=>{
        console.log(value)
      }) */


      function test(){
        setTimeout(() => {
          return 777
        }, 1000);
      }

      let result = test()


    </script>
  </body>
</html>